<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U('')}">
       <div class="tab-content">
  
          <div class="form-group">
            <label class="col-sm-2 control-label "> <span class="red">*</span>房间编号 </label>
            <div class="col-sm-10">
              <input type="text"  name="name" value="{$data.name}" class="col-xs-8 col-sm-5 " />
               </div>
          </div>

           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>楼号 </label>
               <div class="col-sm-10">
                   <select class="input-large  selectpicker"  name="building" title="请选择">


                       <volist name=":F('Var_building_tree')" id="vo"  >
                           <optgroup label="{$vo.name}">

                               <volist name="vo[child]" id="v"  >
                                   <php>$clecked=($v[id]==$data['building'])?'selected':'';</php>
                                   <option value="{$v.id}" {$clecked}>{$v.name}</option>


                               </volist>
                           </optgroup>




                       </volist>


                   </select>

               </div>
           </div>
           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> 楼层 </label>
               <div class="col-sm-10">
                   <input type="text"  name="floor" value="{$data.floor}" class="col-xs-8 col-sm-5 " />
               </div>
           </div>


           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>房屋类型 </label>
               <div class="col-sm-10">
                   <select class="input-large selectpicker"  name="type" title="请选择">


                       <volist name=":F('Var_room_type')" id="vo"  >

                           <php>$clecked=($vo[id]==$data['type'])?'selected':'';</php>


                           <option value="{$vo.id}" {$clecked}>{$vo.name}</option>

                       </volist>
                   </select>

               </div>
           </div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> 可住人数 </label>
               <div class="col-sm-10">
                   <input type="text"  name="maxnum" value="{$data.maxnum}" class="col-xs-8 col-sm-5 " />
               </div>
           </div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> 状态改变人数 </label>
               <div class="col-sm-10">
                   <input type="text"  name="changenum" value="{$data.changenum}" class="col-xs-8 col-sm-5 " />
               </div>
           </div>






       </div>
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
          <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>提交</if></button>

      	 <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
      </div>
      
      </div>
    </form>
</block>
<block name="plugin-script">
    <script src="__JS__/content.js"></script>
    <script src="__JS__/ueditor/ueditor.config.js"></script>
    <script src="__JS__/ueditor/ueditor.all.min.js"></script>
</block>